﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo
{   
  public abstract class Compute
    { 

         public void Add(double a ,double b)
        {
            Console.WriteLine("和为："+(a+b).ToString());
        }
    }
    public class Computes : Compute
    {
         public void Minus(double a, double b)
        {
            Console.WriteLine("差为：" + (a-b).ToString("f2"));
        }
    }
    
  class Teacher
    {
        double i = 6.6, k = 3;
        private string  a="胡哥";
        public void teachername( ref string x,out double y)
        {
            x += a;
            y = i / k;
        }


    }

   

}
